]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Return results of forwarded acceptDrop
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 2 May 2019 15:49:21 +0000 (17:49 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 18 Sep 2019 17:14:16 +0000 (17:14 +0000)
Return the results of calls to acceptDrop that we forwarded to the
Workspace object.

This fixes a bug where app icons that were dragged and released above a
window clone would get animated back to their original position
(indicating that nothing happened) even though they opened correctly.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/121

js/ui/workspace.js

index 7ffec352b8526d430fa6e1be7806959042765344..92f9622f2d9fc65734d8b0e2c6bcd0612c381ca5 100644 (file)
@@ -421,7 +421,7 @@ var WindowClone = GObject.registerClass({
     }
 
     acceptDrop(source, actor, x, y, time) {
-        this._workspace.acceptDrop(source, actor, x, y, time);
+        return this._workspace.acceptDrop(source, actor, x, y, time);
     }
 
     _onDragCancelled(_draggable, _time) {